import request from '@/utils/request'

// 获取用户消息分页
export function requestInfoRecordPage(data) {
  return request({
    url: '/userMessage/page',
    method: 'post',
    data: data,
  })
}
// 消息已读
export function requestInfoRecordRead(params) {
  return request({
    url: `/userMessage/readRecord/${params.id}`,
    method: 'post',
  })
}

// 消息批量已读
export function requestInfoRecordReadBatch(data) {
  return request({
    url: `/userMessage/readRecordBatch`,
    method: 'post',
    data: data,
  })
}
//   消息推送记录
export function requestInfoRecord(data) {
  return request({
    url: '/noticeSend/queryMessagePush',
    method: 'post',
    data: data,
  })
}
// 用户消息处理
export function requestInfoDeal(params) {
  return request({
    url: `/userMessage/dealRecord/${params.id}`,
    method: 'post',
  })
}
